using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Editor
{
    public class MapObject
    {
        public enum ObjectType { SpawnPoint, Tree };

        private Vector2 vPostion;
        private ObjectType type;

        public ObjectType Type
        {
            get
            {
                return this.type;
            }
        }

        public Vector2 Position
        {
            get
            {
                return this.vPostion;
            }
        }

        public MapObject(ObjectType type, Vector2 position)
        {
            this.type = type;
            this.vPostion = position;
        }

        public string GetString()
        {
            return ((int)type).ToString() + " " + vPostion.X.ToString() + " " + this.vPostion.Y.ToString() + " /n";
        }
    }
}
